import request from '@/utils/request'

const home = {
  // 饼图-按平台类别
  getByPlatformCategory(params) {
    return request.get('/tjpt/index/getByPlatformCategory',{params});
  },
  // 饼图-按平台级别
  getByPlatformLevel(params) {
    return request.get('/tjpt/index/getByPlatformLevel',{params});
  },
  // 3.8.3.饼图-按平台研究方向
  getByResearchDirection(params) {
    return request.get('/tjpt/index/getByResearchDirection',{params});
  },
  // 3.8.4.年度-曲线图
  getMapByYear(type) {
    return request.get(`/tjpt/index/getMapByYear/${type}`);
  },
  // 申报平台数量排名前10的单位列表
  getDeptProjectRanking(params) {
    return request.get('/tjpt/index/getDeptProjectRanking',{params});
  },
  // 根据不同参数类型，显示不同类型的年度曲线图
  getInputRanking(type) {
    return request.get(`/tjpt/index/getInputRanking/${type}`,);
  },
}

export default home;
